﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MoveState : Istates
{
    public EntityBase User;
    public MonoParameter para;

    public MoveState()
    {

    }
    public MoveState(int i, EntityBase user)
    {
        this.User = user;
        this.para = User.parameter;
    }
    public void OnEnter()
    {
        //Debug.Log(para.ComponentData.animator.runtimeAnimatorController.animationClips.Length);
    }
    public void OnUpdate()
    {
         para.ComponentData.animator.SetFloat("Horizontal", para.MovementData.moveDir.x);
         para.ComponentData.animator.SetFloat("Vertical", para.MovementData.moveDir.y);
         para.ComponentData.animator.Play("Move");
    }
    public void OnExit()
    {
    }
}
